package ve.usb.ddp;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;
import java.util.List;
import ve.usb.cohesion.runtime.Pair;


public class FPai extends org.apache.struts.action.ActionForm {
    
    
    public FPai() {
        super();
        idPai = 0l;
        ci = 0;
        fec_Ini = null;
        fec_Fin = null;
        articulo8 = false;
        profesor = 0l;
        listProfesor = null;

    }
    
    public void reset(ActionMapping mapping, HttpServletRequest request) {
        idPai = 0l;
        ci = 0;
        fec_Ini = null;
        fec_Fin = null;
        articulo8 = false;
        profesor = 0l;
        listProfesor = null;

    }

    public static FPai clear(ActionMapping mapping, HttpServletRequest request) {
        HttpSession sess = request.getSession();
        FPai fFPai = (FPai) sess.getAttribute("FPai");
        if (fFPai == null) {
            fFPai = new FPai();
            sess.setAttribute("FPai", fFPai);
        } else {
            fFPai.reset(mapping, request);
        }
        return fFPai;
    }

//    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
//        ActionErrors errors = new ActionErrors();
//
//        return errors;
//    }

/**
     * Holds value of property idPai.
     */
    private Long idPai;

    /**
     * Getter for property idPai.
     * @return Value of property idPai.
     */
    public Long getIdPai() {
        return this.idPai;
    }

    /**
     * Setter for property idPai.
     * @param idPai New value of property idPai.
     */
    public void setIdPai(Long idPai) {
        this.idPai = idPai;
    }

/**
     * Holds value of property ci.
     */
    private int ci;

    /**
     * Getter for property ci.
     * @return Value of property ci.
     */
    public int getCi() {
        return this.ci;
    }

    /**
     * Setter for property ci.
     * @param ci New value of property ci.
     */
    public void setCi(int ci) {
        this.ci = ci;
    }

/**
     * Holds value of property fec_Ini.
     */
    private String fec_Ini;

    /**
     * Getter for property fec_Ini.
     * @return Value of property fec_Ini.
     */
    public String getFec_Ini() {
        return this.fec_Ini;
    }

    /**
     * Setter for property fec_Ini.
     * @param fec_Ini New value of property fec_Ini.
     */
    public void setFec_Ini(String fec_Ini) {
        this.fec_Ini = fec_Ini;
    }

/**
     * Holds value of property fec_Fin.
     */
    private String fec_Fin;

    /**
     * Getter for property fec_Fin.
     * @return Value of property fec_Fin.
     */
    public String getFec_Fin() {
        return this.fec_Fin;
    }

    /**
     * Setter for property fec_Fin.
     * @param fec_Fin New value of property fec_Fin.
     */
    public void setFec_Fin(String fec_Fin) {
        this.fec_Fin = fec_Fin;
    }

/**
     * Holds value of property articulo8.
     */
    private boolean articulo8;

    /**
     * Getter for property articulo8.
     * @return Value of property articulo8.
     */
    public boolean getArticulo8() {
        return this.articulo8;
    }

    /**
     * Setter for property articulo8.
     * @param articulo8 New value of property articulo8.
     */
    public void setArticulo8(boolean articulo8) {
        this.articulo8 = articulo8;
    }

/**
     * Holds value of property profesor.
     */
    private Long profesor;

    /**
     * Getter for property profesor.
     * @return Value of property profesor.
     */
    public Long getProfesor() {
        return this.profesor;
    }

    /**
     * Setter for property profesor.
     * @param profesor New value of property profesor.
     */
    public void setProfesor(Long profesor) {
        this.profesor = profesor;
    }

/**
     * Holds value of property listProfesor.
     */
    private List<Pair> listProfesor;

    /**
     * Getter for property listProfesor.
     * @return Value of property listProfesor.
     */
    public List<Pair> getListProfesor() {
        return this.listProfesor;
    }

    /**
     * Setter for property listProfesor.
     * @param listProfesor New value of property listProfesor.
     */
    public void setListProfesor(List<Pair> listProfesor) {
        this.listProfesor = listProfesor;
    }




}